import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter)
const routes = [
  {
    path:'/',
    redirect:'/drag'
  },
  { path: '/drag',
    name: 'drag',
    component:()=>import('../views/drag.vue')
  },
  { path: '/updateLog',
    name:'updateLog',
    component:()=>import('../views/updateLog.vue')
  },
]
const router = new VueRouter({
  routes // (缩写) 相当于 routes: routes
})
export default router